<?php
/**
 * Created by PhpStorm.
 * User: uj6
 * Date: 2017/5/26
 * Time: 16:04
 */

class DriverTypeRewardModel
{

    //获取手续费列表
    function glist($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/lists';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

    //新增手续费方案
    function add($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/submits';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

    //修改手续费方案
    function modify($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/modify';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

    //删除手续费方案
    function del($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/delete';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

    //查找司机
    function driverlist($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/drivers';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

    //查找线路
    function linelist($param)
    {
        global $config;
        $url = $config['url']['strategyUrl'] . '/bak/strategyDriverCommission/lines';
        $res = common::curlpostjson($url, $param);
        if (!$res) {
            return false;
        }
        return $res;
    }

}
